﻿<?xml version="1.0" encoding="utf-8" ?>
<objects xmlns="http://www.springframework.net">
  <description>Deletes a file first then creates it</description>

  <import resource="MyAliases.xml"/>
  <object id="MacroToProcess" type="Macro" >
	<constructor-arg name="templateId" value="1C420832-0A41-4f65-87C6-1B62E84DF536"/>
    <constructor-arg name="instanceid" value="C166A098-1B93-4608-A036-469DC162CB49" />
    <constructor-arg name="actions">
      <list element-type="IAction">
        
        <!-- Delete the file -->
        <object id="DeleteFileTest" type="Action.DeleteFile" >
          <property name="EntityList" ref="fileProperties"/>          
        </object>

        <!-- Create the file -->
        <object id="WriteFileTest" type="Action.WriteFile" >          
          <property name="EntityList" ref="fileProperties"/>          
        </object>

        </list>
      </constructor-arg>
    
  </object>

  <!-- A File Entity-->
  <object id="fileProperties" type="Entity.FileProps">
    <property name="FileName" value="Macro.txt" />
    <property name="Path" value="c:\temp" />
    <property name="Message" value="Hello, I am a test File." />
  </object>
  
</objects>

